package
{
	import com.facebook.graph.FacebookMobile;

	public class UserInfo
	{
		
		public var facebook_uid:String;
		public var facebook_name:String;
		public var username:String;
		public var accessToken:String;
		public var birthDay:String;
		public var email:String;
		public var gender:String;
		public var hometown:Object; // hometown:[id, name]
		public var location:Object; // loaction:[id, name]
		
		public function UserInfo()
		{
			
		}
		
		public function setBySession(session:Object):void{
			accessToken = session.accessToken;
			facebook_name = session.user.username;
			facebook_uid = session.user.uid;
			
			birthDay = session.user.birthday;
			email = session.user.email;
			gender = session.user.gender;
			
			hometown = session.user.hometown;
			location = session.user.location;
			
			username = session.user.username;
		}
		
		
	}
}